package com.campus.counseling.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(description = "密码修改DTO")
public class PasswordUpdateDTO {
    @NotBlank(message = "当前密码不能为空")
    @ApiModelProperty("当前密码")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, message = "密码长度不能小于6位")
    @ApiModelProperty("新密码")
    private String newPassword;
} 